
<template>
  <div>
    <h5>{{ title }}</h5>
    <el-form :model="form" label-width="100px">
      <el-form-item label="与患者关系">
        <el-select v-model="form.relationship" placeholder="请选择">
          <el-option label="兄" value="1" />
          <el-option label="弟" value="2" />
          <el-option label="姐" value="3" />
          <el-option label="妹" value="4" />
          <el-option label="父" value="5" />
          <el-option label="母" value="6" />
          <el-option label="子女" value="7" />
          <el-option label="二级亲属" value="8" />
        </el-select>
      </el-form-item>
      <el-form-item label="系谱图">
        <upload ref="upload" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import upload from '../upload'

export default {
  components: {
    upload
  },
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      form: {
        id: '',
        relationship: '',
        name: '',
        imageUrl: '',
        pid: this._routerRoot._route.query.id
      }
    }
  },
  mounted() {
    // this.form.imageUrl = this.$refs.upload.dialogImageUrl[0]
    // console.log(this.form.imageUrl);
  }
}
</script>

<style>

</style>
